const state={
    isCollapse:false
}
const mutations = {
    SET_COLLAPSE:(state,isCollapse)=>{
        state.isCollapse=isCollapse
    }
}

const actions={
    getCollapse({commit},isCollapse){
        return new Promise(() => {
            commit('SET_COLLAPSE',isCollapse)
        })
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}